import request from '@/utils/request';
var apiUrl = process.env.apiUrl;

// 甘特图测试
export async function getMapInfo(data) {
  return request(
    `/mapinfo/meishangang-678.xml`,
    {
      method: 'GET',
      params: { key: 'value' }
    },
    apiUrl,
  );
}
// 卡车路线坐标
export async function getTruckAll(data) {
  return request(
    `/getTruckAll`,
    {
      method: 'GET',
      params: {}
    },
    apiUrl,
  );
}
// 龙门吊
export async function getGantryCraneAll(data) {
  return request(
    `/getGantryCraneMapAll`,
    {
      method: 'GET',
      params: {}
    },
    apiUrl,
  );
}
// 桥吊
export async function getTravellingBridgeAll(data) {
  return request(
    `/getTravellingBridgeMapAll`,
    {
      method: 'GET',
      params: {}
    },
    apiUrl,
  );
}
// 指令
export async function getResourceDistributionResult(data) {
  return request(
    `/getResourceDistributionResult`,
    {
      method: 'GET',
      params: {}
    },
    apiUrl,
  );
}
// 集卡调度结果
export async function getTruckScheduleResultList(data) {
  return request(
    `/getTruckScheduleResultList`,
    {
      method: 'GET',
      params: {}
    },
    apiUrl,
  );
}
// 指令调度结果
export async function getWiScheduleResultList(data) {
  return request(
    `/getWiScheduleResultList`,
    {
      method: 'GET',
      params: {}
    },
    apiUrl,
  );
}
// 单个集卡行驶结果
export async function getTargetLongitudeAndLatitude(data) {
  return request(
    `/getTargetLongitudeAndLatitude`,
    {
      method: 'GET',
      params: data
    },
    apiUrl,
  );
}
// 全部集卡行驶结果
export async function getAllTargetLongitudeAndLatitude(data) {
  return request(
    `/getAllTargetLongitudeAndLatitude`,
    {
      method: 'GET',
      params: data
    },
    apiUrl,
  );
}
// 指标结果
export async function getDeviceRatioResult(data) {
  return request(
    `/getDeviceRatioResult`,
    {
      method: 'GET',
      params: {}
    },
    apiUrl,
  );
}
// getRedisResult
export async function getRedisResult(data) {
  return request(
    `/getRedisResult`,
    {
      method: 'GET',
      params: {}
    },
    apiUrl,
  );
}